.class Lcom/nemustech/tiffany/world/TFWorld$1;
.super Ljava/lang/Object;
.source "TFWorld.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/nemustech/tiffany/world/TFWorld;->spreadFog(FF)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/tiffany/world/TFWorld;

.field final synthetic val$fogEnd:F

.field final synthetic val$fogStart:F


# direct methods
.method constructor <init>(Lcom/nemustech/tiffany/world/TFWorld;FF)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 173
    iput-object p1, p0, Lcom/nemustech/tiffany/world/TFWorld$1;->this$0:Lcom/nemustech/tiffany/world/TFWorld;

    iput p2, p0, Lcom/nemustech/tiffany/world/TFWorld$1;->val$fogStart:F

    iput p3, p0, Lcom/nemustech/tiffany/world/TFWorld$1;->val$fogEnd:F

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 4

    .prologue
    .line 175
    sget-object v1, Lcom/nemustech/tiffany/world/TFRenderer;->mGL:Ljavax/microedition/khronos/opengles/GL10;

    .line 176
    .local v1, gl:Ljavax/microedition/khronos/opengles/GL10;
    if-nez v1, :cond_0

    new-instance v2, Ljava/lang/IllegalArgumentException;

    const-string v3, "Void GL context."

    invoke-direct {v2, v3}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v2

    .line 177
    :cond_0
    const/4 v2, 0x4

    new-array v0, v2, [F

    fill-array-data v0, :array_0

    .line 178
    .local v0, fogColor:[F
    const/16 v2, 0xb65

    const/16 v3, 0x2601

    invoke-interface {v1, v2, v3}, Ljavax/microedition/khronos/opengles/GL10;->glFogx(II)V

    .line 179
    const/16 v2, 0xb66

    const/4 v3, 0x0

    invoke-interface {v1, v2, v0, v3}, Ljavax/microedition/khronos/opengles/GL10;->glFogfv(I[FI)V

    .line 180
    const/16 v2, 0xc54

    const/16 v3, 0x1100

    invoke-interface {v1, v2, v3}, Ljavax/microedition/khronos/opengles/GL10;->glHint(II)V

    .line 181
    const/16 v2, 0xb63

    iget v3, p0, Lcom/nemustech/tiffany/world/TFWorld$1;->val$fogStart:F

    invoke-interface {v1, v2, v3}, Ljavax/microedition/khronos/opengles/GL10;->glFogf(IF)V

    .line 182
    const/16 v2, 0xb64

    iget v3, p0, Lcom/nemustech/tiffany/world/TFWorld$1;->val$fogEnd:F

    invoke-interface {v1, v2, v3}, Ljavax/microedition/khronos/opengles/GL10;->glFogf(IF)V

    .line 183
    const/16 v2, 0xb60

    invoke-interface {v1, v2}, Ljavax/microedition/khronos/opengles/GL10;->glEnable(I)V

    .line 184
    return-void

    .line 177
    :array_0
    .array-data 0x4
        0x0t 0x0t 0x0t 0x0t
        0x0t 0x0t 0x0t 0x0t
        0x0t 0x0t 0x0t 0x0t
        0x0t 0x0t 0x80t 0x3ft
    .end array-data
.end method
